package com.tech.platform.cms.authz.common.context;

import com.tech.platform.cms.authz.common.model.LoginUserModel;

public class LocalThreadLoginUser {

    private ThreadLocal<LoginUserModel> threadLocal = new ThreadLocal<>();

    public void set(LoginUserModel loginUser){
        threadLocal.set(loginUser);
    }

    public LoginUserModel get(){
        return threadLocal.get();
    }
}
